gusucode.com > Neutrosophic logic toolbox Package_ Neutrosophic Matrices > Neutrosophic logic toolbox Package_ Neutrosophic Matrices/@nm/disp_latex.m

    function st=disp_latex(A);
% function st=disp_latex_intu(A);
% latex output for neutrosophic matrix
%
%In the Name of ALLAH
% neutrosphic logic toolbox for computing single valued neutrosophic Matrices 
% Copyright (C) 2015-2019 Broumi said 
%for for details see the refrence:  
%Said Broumi, Le Hoang Son, Assia Bakali, Mohamed Talea, Florentin Smarandache,
%Ganeshsree Selvachandran, Computing Operational Matrices in Neutrosophic Environments:
%A Matlab Toolbox,Neutrosophic Sets and Systems, 18,2017,pp.58-66.
% neutrosphic logic toolbox for computing single valued neutrosophic Matrice comes 
% This is free software, and you are welcome to redistribut;see license.txt for details.


alig=[];
for i=1:length(A.m(1,:))
    alig=[alig 'r'];
%    keyboard
end
stri_start=['\left [\begin {array}{' alig '}'];

for i=1:length(A.m(:,1))
    stri=['<'];
    for j=1:length(A.m(1,:))
                
        s1=sprintf('%8.2f',A.m(i,j));
        s2=sprintf('%6.2f',A.n(i,j));
        s12=[s1 ',' s2];
%(0.00,  0.90)\;\;&    (0.80,  0.00)\\                
        if j<length(A.m(1,:))
        stri=[stri s12 '>\;\;&<'];
        elseif j==length(A.m(1,:))
        stri=[stri s12 '>\\'];
        end
        st(i,1:length(stri))=stri;
    end
    stri;
end
stri_end=['\end {array} \right]'];

disp(stri_start)
disp(st)
disp(stri_end)